﻿/** \file
* \$Rev: 183 $
* 
* \$Date: 2010-04-14 00:34:38 +0000 (Wed, 14 Apr 2010) $
*
* \$URL: http://chorus-twitter.googlecode.com/svn/trunk/src/gui/ProfilePicForm.cs $
*/

using System;
using System.Drawing;
using System.Windows.Forms;

namespace chorus.gui
{
	/// <summary>
	/// A small form that shows a Twitter user profile picture.
	/// </summary>
	public partial class ProfilePicForm : Form
	{
		/// <summary>The constructor.</summary>
		/// <param name="pic">The profile image.</param>
		public ProfilePicForm(Image pic)
		{
			InitializeComponent();

			pictureBox.Image = pic;
			Width = Height * pic.Width / pic.Height;
		}
	}
}
